<template>
	<div class="bar-toHome" :style="btnStyle">
		<image @tap="back" style="width: 60rpx;height: 60rpx;" :src="getImgSrc('/home/toHome.png')" mode="widthFix"></image>
	</div>
</template>
 <script>
	export default {
		props: {
			btnStyle: {
				type: String,
				default: ''
			}
		},
		data() {
			return {
			};
		},
		mounted() {
			
		},
		methods:{
			back(){
				uni.reLaunch({
					url: '/pages/sys/home/index'
				});
			},
		}
	}
  </script> 
  
 <style lang="scss">
      /*正中*/
	.bar-toHome {
		position: fixed;
		right: 0;
		top: 60%;
		border-radius: 40rpx 0 0 40rpx;
		background: #f2f2f2;
		padding: 10rpx 10rpx 10rpx 20rpx;
		z-index: 10;
		font-size: 0;
	}
 
 </style>